package com.hw3;

public class ASTNode {
	//abstract syntax tree
	private String op;
	private Double value;
	private Boolean isEqual=false;
	private Boolean usesEqual=false;
	private ASTNode left;
	private ASTNode right;
	
	ASTNode(){
		
	}
	ASTNode(String opr, ASTNode node){
		op=opr;
		right=node;
	}
	ASTNode(String opr, ASTNode l, ASTNode r){
		op=opr;
		left=l;
		right=r;
	}
	//getters and setters
	public String getOp() {
		return op;
	}
	public void setOp(String op) {
		this.op = op;
	}
	public Double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}
	public ASTNode getLeft() {
		return left;
	}
	public void setLeft(ASTNode left) {
		this.left = left;
	}
	public ASTNode getRight() {
		return right;
	}
	public void setRight(ASTNode right) {
		this.right = right;
	}
	public Boolean getIsEqual() {
		return isEqual;
	}
	public void setIsEqual(Boolean isEqual) {
		this.isEqual = isEqual;
	}
	public Boolean getUsesEqual() {
		return usesEqual;
	}
	public void setUsesEqual(Boolean usesEqual) {
		this.usesEqual = usesEqual;
	}
	
}
